package cn.com.sbell.vss.ems.entity;

import cn.com.sbell.vss.BaseObject;

/**
 * @bean name="user"
 * @hibernate.class table="EMS_USER"
 * @author Yifu.HUANG
 */
public class User extends BaseObject {

	private String id;

	private String username;

	private String password;

	private String displayName;

	private String description;

	private boolean disabled;

	private String email;

	private String dept;

	private String fixedNumber;

	private String mobileNumber;

	private String address;

	private String organizationId;

	private String creator;

	private int userLevel;

	private String userNumber;

	private int userType;
	
	//since v2.0
	private String domainId;	
	
	
	/**
	 * @hibernate.property column="DOMAIN_ID" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getDomainId() {
		return domainId;
	}

	public void setDomainId(String domainId) {
		this.domainId = domainId;
	}

	/**
	 * @hibernate.property column="USER_TYPE" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	/**
	 * @hibernate.id column="ID" generator-class="uuid.hex" length="32"
	 * @return
	 */
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @hibernate.property column="USERNAME" length="32" not-null="true"
	 *                     unique="true"
	 * @return
	 */
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @hibernate.property column="PASSWORD" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @hibernate.property column="DISPLAY_NAME" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * @hibernate.property column="DISABLED" not-null="true" unique="false"
	 * @return
	 */
	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	/**
	 * @hibernate.property column="DESCRIPTION" length="128" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @hibernate.property column="DEPT" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	/**
	 * @hibernate.property column="FIXED_NUMBER" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getFixedNumber() {
		return fixedNumber;
	}

	public void setFixedNumber(String fixedNumber) {
		this.fixedNumber = fixedNumber;
	}

	/**
	 * @hibernate.property column="MOBILE_NUMBER" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getMobileNumber() {
		return mobileNumber;
	}

	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}

	/**
	 * @hibernate.property column="ADDRESS" length="256" not-null="false"
	 *                     unique="false"
	 * @return
	 */

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @hibernate.property column="EMAIL" length="128" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @hibernate.property column="CREATOR" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	/**
	 * @hibernate.property column="ORGANIZATION_ID" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getOrganizationId() {
		return organizationId;
	}
	/**
	 * @hibernate.property column="USER_LEVEL" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public int getUserLevel() {
		return userLevel;
	}

	/**
	 * @hibernate.property column="USER_NUMBER" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getUserNumber() {
		return userNumber;
	}

  public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public void setUserLevel(int userLevel) {
		this.userLevel = userLevel;
	}

	public void setUserNumber(String userNumber) {
		this.userNumber = userNumber;
	}
}
